package com.fxp.project.jiuselu.web.models.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
public class JslActivity implements Serializable {

    @TableId("activity_id")
    private Long activityId;

    /** 活动名称 */
    @TableField("activity_name")
    private String activityName;

    /** 商品id */
    @TableField("goods_id")
    private String goodsId;

    @TableField("attr_id")
    private String attrId;

    @TableField("attr_name")
    private String attrName;

    /** 商品名称 */
    @TableField("goods_name")
    private String goodsName;

    /** 商品图片 */
    @TableField("goods_image")
    private String goodsImage;

    /** 活动开始时间 */
    @TableField("activity_start_time")
    private LocalDateTime activityStartTime;

    /** 活动结束时间 */
    @TableField("activity_end_time")
    private LocalDateTime activityEndTime;

    /** 每人限购 */
    @TableField("limit_buy_person")
    private Long limitBuyPerson;

    /** 每天限购 */
    @TableField("limit_buy_day")
    private Long limitBuyDay;

    /** 活动状态（0关闭，1开启） */
    @TableField("status")
    private Long status;

    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Long surplusMills;
}

